package com.nercel.dsj.gksales.dao.mapper;


import com.nercel.dsj.gksales.model.QueryParams;
import com.nercel.dsj.gksales.model.dto.AgentResultDTO;
import com.nercel.dsj.gksales.model.entity.Agent;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface AgentMapper extends BaseMapper<Agent> {

	List<AgentResultDTO> query(QueryParams params);

	void deleteByUserId(Integer id);

	List<Map<String, Object>> statistics(QueryParams params);

}
